﻿using System;

namespace SharpDepend.Classes
{
    public class OriginalStopwatch : IStopwatchManager
    {
        public double TickTime
        {
            get
            {
                return Environment.TickCount;
            }
        }

        class Stopwatch : IStopwatch
        {
            private int mStart;

            public double ElapsedTicks { get; private set; }

            public void Start()
            {
                mStart = Environment.TickCount;
            }

            public void Stop()
            {
                ElapsedTicks = Environment.TickCount - mStart;
            }
        }

        public IStopwatch CreateStopwatch()
        {
            return new Stopwatch();
        }
    }
}
